package com.uriuniv.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.uriuniv.domain.Board;

public class BoardM implements RowMapper {
	
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {

		Board board = new Board();
		
		board.setBoardId(rs.getString("BOARD_ID").trim());
		board.setBoardName(rs.getString("BOARD_NAME"));
		board.setOrderNo(rs.getInt("ORDER_NO"));
		board.setRegDate(rs.getTimestamp("REG_DATE"));
		board.setModDate(rs.getTimestamp("MOD_DATE"));
		
		return board;
	}
}
